package com.czztjj.springboottest;

import com.czztjj.springboottest.entity.Person;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class Config {

    @Bean
    public Person person() {
        Person person = new Person();
        person.setGender("女");
        return person;
    }

}
